<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view @click="call">联系电话：400-618-9090（点击拨打）</view>
			<view>联系地址：江苏省无锡市梁溪区金星街道中南社区中南新村89号201</view>
		</view>
		<map class="map" :longitude="longitude" :latitude="latitude" :scale="scale" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 120.302833,
				latitude: 31.541087,
				scale: 17,
				markers: [{
					longitude: 120.302833,
					latitude: 31.541087,
					iconPath: './../../../static/icon/cart-active.png',
					width: 20,
					height: 20
				}]
			}
		},
		methods: {
			/**
			 * 打电话
			 */
			call() {
				uni.makePhoneCall({
					phoneNumber: "400-618-9090"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	@import "~@/static/css/index/contact.scss";	
</style>
